<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>rrdinfo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body>



<h1 id="NAME">NAME</h1>

<p>rrdinfo - extract header information from an RRD</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p><b>rrdtool</b> <b>info</b> <i>filename</i> <span style="white-space: nowrap;">[<b>--daemon</b>|<b>-d</b> <i>address</i> [<b>--noflush</b>|<b>-F</b>]]</span></p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>The <b>info</b> function prints the header information from an RRD in a parsing friendly format.</p>

<p>Check <a href="./rrdcreate.html">rrdcreate</a> if you are uncertain about the meaning of the individual keys.</p>

<dl>

<dt id="filename"><i>filename</i></dt>
<dd>

<p>The name of the <b>RRD</b> you want to examine.</p>

</dd>
<dt id="daemon--d-address"><b>--daemon</b>|<b>-d</b> <i>address</i></dt>
<dd>

<p>Address of the <a href="./rrdcached.html">rrdcached</a> daemon. If specified, a <code>flush</code> command is sent to the server before reading the RRD files. This allows <b>rrdtool</b> to return fresh data even if the daemon is configured to cache values for a long time. For a list of accepted formats, see the <b>-l</b> option in the <a href="./rrdcached.html">rrdcached</a> manual.</p>

<pre><code> rrdtool info --daemon unix:/var/run/rrdcached.sock /var/lib/rrd/foo.rrd</code></pre>

</dd>
<dt id="noflush--F"><b>--noflush</b>|<b>-F</b></dt>
<dd>

<p>Omit the <code>flush</code> command usually sent to the daemon prior to retrieving the data. If all you are interested in is the RRD structure, and not the last update time or current values, then this will improve efficiency.</p>

</dd>
</dl>

<h1 id="EXAMPLE">EXAMPLE</h1>

<p>This is the output generated by running <b>info</b> on a simple RRD which contains two data sources and one RRA. Note that the number after the <i>last_update</i> keyword is in seconds since 1970. The string <b>NaN</b> stands for <i>*UNKNOWN*</i> data. In the example it means that this RRD has neither minimum nor maximum values defined for either of its data sources.</p>

<pre><code> filename = &quot;random.rrd&quot;
 rrd_version = &quot;0001&quot;
 step = 300
 last_update = 955892996
 header_size = 2872
 ds[a].type = &quot;GAUGE&quot;
 ds[a].minimal_heartbeat = 600
 ds[a].min = NaN
 ds[a].max = NaN
 ds[a].last_ds = &quot;UNKN&quot;
 ds[a].value = 2.1824421548e+04
 ds[a].unknown_sec = 0
 ds[b].type = &quot;GAUGE&quot;
 ds[b].minimal_heartbeat = 600
 ds[b].min = NaN
 ds[b].max = NaN
 ds[b].last_ds = &quot;UNKN&quot;
 ds[b].value = 3.9620838224e+03
 ds[b].unknown_sec = 0
 rra[0].cf = &quot;AVERAGE&quot;
 rra[0].pdp_per_row = 1
 rra[0].cdp_prep[0].value = nan
 rra[0].cdp_prep[0].unknown_datapoints = 0
 rra[0].cdp_prep[1].value = nan
 rra[0].cdp_prep[1].unknown_datapoints = 0</code></pre>

<h1 id="ENVIRONMENT-VARIABLES">ENVIRONMENT VARIABLES</h1>

<p>The following environment variables may be used to change the behavior of <code>rrdtool&nbsp;info</code>:</p>

<dl>

<dt id="RRDCACHED_ADDRESS"><b>RRDCACHED_ADDRESS</b></dt>
<dd>

<p>If this environment variable is set it will have the same effect as specifying the <code>--daemon</code> option on the command line. If both are present, the command line argument takes precedence.</p>

</dd>
</dl>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Tobias Oetiker &lt;tobi@oetiker.ch&gt;</p>


</body>

</html>


